function createXHR() {
	var xmlhttp;
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	return xmlhttp;
}



function saveProfil() {
	var xmlhttp = createXHR();
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			displayListView();
		}
	}
	xmlhttp.open("POST", "/profil", true);
	xmlhttp.setRequestHeader("Content-type",
			"application/x-www-form-urlencoded");
	xmlhttp.send("category=" + document.getElementById('category').value
			+ "&description="+ document.getElementById('description').value+ "&action=PUT");
	
	document.getElementById('description').value = "";
}